<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">

<head th:replace="_fragments :: head(~{::title})">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>搜索结果</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../static/css/animate.css">
    <link rel="stylesheet" href="../static/css/me.css">

</head>
<body>
<!--导航-->
<nav th:replace="_fragments :: menu(1)"></nav>


<!--中间内容-->
<div class="m-padded-tb-max m-container animate__animated animate__fadeInUp">
    <!--分类栏-->
    <div class="ui center aligned segment m-shadow-small">
        <div class="ui middle aligned two column grid">
            <div class="left aligned column">
                <h1 class="ui m-font-kt"><i class="ui search icon"></i>搜索结果</h1>
            </div>
            <div class="right aligned column">
                共 &nbsp;<h1 th:text="${page.totalElements}" class="ui orange header m-inline-block"> 6 </h1> &nbsp;篇
            </div>
        </div>
    </div>
    <!--文章栏-->
    <div class="ui top attached blue segment">
        <div class="ui padded vertical segment m-padded-tb-large" th:each="blog : ${page.content}">
            <div class="ui middle aligned mobile reversed stackable grid">
                <div class="ten wide column">
                    <h3 class="ui header">
                        <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" class="m-black"
                           target="_blank" th:text="${blog.title}">和我一起去旅游怎么样？
                        </a>
                    </h3>
                    <p class="m-text" th:text="|${blog.description}......|">
                        如果问世间上还有真正的“香格里拉”吗？那么这个地方一定是不丹王国！这是一块心灵的福地，是崇尚高雅与纯洁的精神乐园，因为这里有经幡、有寺庙、有僧侣；不丹就像一个不食人间烟火的孩子，纯净清澈，质朴天然，有信仰，有自由......</p>
                    <div class="ui middle aligned grid">
                        <div class="twelve wide column">
                            <div class="ui mini horizontal link list">
                                <div class="item">
                                    <img src="https://picsum.photos/id/1026/100/100" alt=""
                                         th:src="@{${blog.user.avatar}}"
                                         class="ui avatar image">
                                    <div class="content">
                                        <a class="header m-text-t1" th:text="${blog.user.nickname}">颜云华</a>
                                    </div>
                                </div>
                                <div class="item">
                                    <i class="calendar alternate outline icon"></i><span
                                        th:text="${#dates.format(blog.updateTime,'yyyy-MM-dd')}">2020-02-01</span>
                                </div>
                                <div class="item">
                                    <i class="eye icon"></i><span th:text="${blog.views}">222</span>
                                </div>
                            </div>
                        </div>
                        <div class="right aligned four wide column">
                            <a href="#" target="_blank" class="ui blue basic label m-padded-tiny"
                               th:text="${blog.type.name}">旅行日记
                            </a>
                        </div>
                    </div>
                </div>
                <div class="middle aligned six wide column">
                    <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank">
                        <img src="https://picsum.photos/id/1015/300/400" th:src="@{${blog.firstPicture}}" alt=""
                             style="width:350px ; height:200px !important;" class="ui rounded image">
                    </a>
                </div>
            </div>
        </div>
    </div>
</div>

<!--底部分页-->
<div style="text-align: center" th:if="${page.totalPages}>1">
    <a href="#" th:href="@{'/tags/'+${activeTagId}(page=${page.number}-1)}"
       class="ui large circular icon button" th:unless="${page.first}">
        <i class="left chevron icon"></i></a>
    <a href="#" th:href="@{'/tags/'+${activeTagId}(page=${page.number}+1)}"
       class="ui large circular icon button" th:unless="${page.last}">
        <i class="right chevron icon"></i></a>
</div>

<!--底部footer-->
<footer th:replace="_fragments :: footer"></footer>

<!--/*/<th:block th:replace="_fragments :: script">/*/-->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
<!--------板娘模板-------->
<script src="https://cdn.jsdelivr.net/gh/Fog-Forest/live2d@1.0.2/live2d_load/autoload.js"></script>
<!--/*/</th:block>/*/-->


<!--导航的手机端按钮的响应页面-->
<script>
    $('.menu.toggle').click(function () {
        $('.m-item').toggleClass('m-mobile-hide')
    })
    ;
</script>


</body>
</html>